package com.shudes.container;

import com.shudes.util.*;

public class DataColumns {
	
	protected TwoWayMap<Integer, String> map; 
	
	public DataColumns() { 
		map = new TwoWayMap<Integer, String>(); 		
	}
	
	public void addColumn(String name) { 
		map.put(map.getAMap().keySet().size(), name); 
	}
	
	public Integer size() { 
		return map.getAMap().keySet().size(); 
	}
	
	public Integer getId(String name) { 
		return map.getB(name); 
	}
	
	public String getName(Integer id) { 
		return map.getA(id); 
	}
	

}
